package model

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Name string `gorm:"size:50;not null;unique"`
	Description string `gorm:"size:200;not null"`
	ImgUrl string `gorm:"size:100;not null"`
	Price float64 `gorm:"not null"`
	Number int `gorm:"not null"`
	CategoryID uint `gorm:"not null"`
	Detail string `gorm:"size:500"`
	// Comments []Comment
	OrderItem []OrderItem
}
